package com.lichuandi.springbootdemo1.controller;

import com.lichuandi.springbootdemo1.entity.NotifyDto;
import com.lichuandi.springbootdemo1.service.NativePayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author Lichuandi
 * @version 1.0
 * @program : springbootdemo1
 * @ClassName NativePayController
 * @description :
 * @create: 2025-01-03 15:47
 **/
@RestController
@RequestMapping("/native")
public class NativePayController {

    @Autowired
    private NativePayService nativePayService;
    @PostMapping("/notify")
    public Map<String,String> payNotify(@RequestBody NotifyDto notifyDto){
        return nativePayService.payNotify(notifyDto);
    }
}
